Skip to content

release: 4.1.0 - #919

Merged
igerber merged 1 commit into
mainfrom
release/4.1.0
Nov 27, 2026
Merged

igerber merged 1 commit into
mainfrom
release/4.1.0

Conversation

@igerber

@igerber igerber commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • The 4.1.0 release. __version__, pyproject.toml, rust/Cargo.toml, diff_diff/guides/llms-full.txt and CITATION.cff (version + date-released: 2026-11-26) move from 4.0.0 to 4.1.0.
  • Changelog compiled. CHANGELOG.md gains ## [4.1.0] - 2026-11-26 from the 24 changelog.d/ fragments (13 Behavioral Changes, 6 Added, 3 Changed, 16 Fixed, 10 Documentation, 2 Internal) plus the v4.0.0...v4.1.0 compare link; changelog.d/ holds only README.md. The compiled section was swept for intermediate-state wording and for the design-stage names renamed before release (power_results, not_checked); no edits were needed.
  • The event_study() comparison front door moves from 4.1 to 4.2. docs/v4-design.md laddered the front door (phase 6) for 4.1; it has not been built, and 4.1.0 ships the design-stage tooling and fixes without it. Dated amendments (2026-11-26) update the forward-reference disclaimer, the companion-artifacts pointer, the section 2 ladder and the phase table; ROADMAP.md's heading follows. The ledger (docs/v4-deprecations.yaml) carries no 4.1 entry and is unchanged.
  • Naming guard maps. tests/test_naming_guard.py: _SHIP_VERSION phase 6 -> "4.2" (cross-checked against the phase table by test_ship_version_map_matches_table), _NEXT_RELEASE gains (4, 1): "4.2" so the lifecycle gate keeps every open window armed at 4.1.x, and the module docstring's phase-6 version follows.
  • TODO.md gains one Testing / docs row: test_allowlists_are_reachable depends on the Python version (_declaring_class reads vars(base)["__annotations__"], which 3.14+ no longer populates), so the DMLDiDResults.groups allowlist entry is a live hit on 3.14+ and a dead one on 3.9. The docs-tests lane runs the suite on 3.15, where it is green. Not changed here.

Methodology references (required if estimator / math changes)

  • Method name(s): N/A - no estimator or math changes (the only diff_diff/ edits are the two version strings).
  • Paper / source link(s): N/A
  • Any intentional deviations from the source (and why): None

Validation

  • Tests added/updated: tests/test_naming_guard.py (the two version maps and the docstring). Green at __version__ = 4.1.0 on Python 3.14, pure-Python backend: test_naming_guard, test_changelog_fragments, test_v4_matrix, test_tracking_files, test_docs_ia, test_v4_diagnostic_family_docs, test_doc_deps_integrity (751 passed, 30 skipped); changelog_compile.py check OK; ruff check diff_diff tests and black --check on the edited Python clean.
  • Backtest / simulation / notebook evidence (if applicable): N/A - no notebook or numerical change.

Security / privacy

  • Confirm no secrets/PII in this PR: Yes

Changelog

  • changelog.d/ fragment added (or N/A - no user-visible change): N/A - this PR compiles the fragments into CHANGELOG.md [4.1.0].

Post-merge release runbook

  1. Tag the merge commit so the rehearsal is pinned to the release SHA: git fetch origin && git tag v4.1.0 <merge sha> && git push origin v4.1.0.
  2. Full-matrix build rehearsal (build-only; PR runs build the manylinux leg only): gh workflow run release-build-check.yml --ref v4.1.0, then confirm green AND that it built the tag: gh run list --workflow release-build-check.yml --event workflow_dispatch -L 1 --json headSha,status,conclusion. If it fails, delete the tag (git push origin :refs/tags/v4.1.0) before fixing - no Release exists yet.
  3. gh release create v4.1.0 --title "diff-diff 4.1.0" --notes-file <the [4.1.0] section of CHANGELOG.md> - publishing the Release triggers publish.yml (wheels + sdist -> PyPI via trusted publishing; Zenodo mints the versioned DOI). RTD builds stable from the tag. The release notes should lead with the Behavioral Changes: StackedDiD and SunAbraham estimates move for some designs.
  4. If the tag lands on a day other than 2026-11-26, say so: a one-line follow-up aligns CHANGELOG.md ## [4.1.0] - DATE and CITATION.cff date-released together (the compiler's exit-4 re-run path reads the header date).

Bump the version to 4.1.0 and compile the 24 changelog fragments into the
[4.1.0] section.

The event_study() comparison front door, laddered for 4.1 in
docs/v4-design.md, has not been built and moves to 4.2: the design ladder,
the phase table and ROADMAP.md are amended, and the naming guard's phase and
enforcement-horizon maps gain the 4.1 -> 4.2 entries.

TODO.md records a Python-version dependence in
test_allowlists_are_reachable (green on 3.14+, red on 3.9).
@github-actions

Copy link
Copy Markdown

Overall assessment: ✅ Looks good

No unmitigated P0, P1, or P2 findings.

Executive summary

  • The diff changes release metadata, documentation, and guard configuration; estimator calculations and inference remain unchanged.
  • All five version locations agree on 4.1.0; the release dates and comparison link are consistent.
  • All 24 deleted changelog fragments are preserved exactly in the compiled release section.
  • The 4.2 front-door schedule agrees across the roadmap, design document, and naming guard.
  • The Python-dependent naming-guard limitation is tracked and nonblocking.

Methodology

No findings. No estimator, weighting, variance/SE, identification assumption, or default behavior changes require a new paper comparison. The methodological release notes preserve existing fragment content.

Code Quality

No findings in the changed code.

Performance

No findings. No computational paths change.

Maintainability

No findings. The phase-version map matches the amended phase table, and the new lifecycle horizon covers version 4.1.

Tech Debt

P3 — Informational: naming-guard portability is tracked (TODO.md:L137).

  • Impact: The existing allowlist-reachability test behaves differently across supported Python versions; estimator output is unaffected.
  • Concrete fix: In the tracked follow-up, resolve declaring-class annotations consistently across versions and remove the resulting unused allowlist entry. No action required for this PR.

Security

No findings. No secrets or new security-sensitive behavior identified in the diff.

Documentation/Tests

No findings. Compiling and deleting fragments follows changelog.d/README.md; Unreleased remains pointer-only.

Validation passed: changelog compiler check, exact fragment-preservation comparison, metadata consistency, and five dependency-free naming-guard assertions executed through AST extraction. Full pytest validation was unavailable because pytest, NumPy, pandas, and SciPy are not installed.

@igerber igerber added the ready-for-ci Triggers CI test workflows label Nov 26, 2026
@igerber
igerber merged commit 0c5aa5a into main Nov 27, 2026
53 of 54 checks passed
@igerber
igerber deleted the release/4.1.0 branch November 27, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ci Triggers CI test workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant